package com.yaorange.service;

import com.github.pagehelper.PageInfo;
import com.yaorange.entity.User;

import java.util.List;

/**
 * @description: 用户业务接口
 * @company: yaorange
 * @author: CorJ
 * @version: 1.0
 * @create: 2021-11-28 14:24
 */
public interface UserService {
    List<User> findAllUser();

    PageInfo<User> pageUser(Integer pageNum, Integer pageSize);

    boolean addUser(User user);

    User getUserByName(String loginName);

    User getUserById(Integer id);
}
